import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: 'chat'
  },
  {
    path: '/chat',
    name: 'chat',
    component: () => import( '../views/chat/ChatMainPanel.vue')
  },
  {
    path: '/server',
    name:'server',
    component: () => import( '../views/server/ServerManager.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
